package one.stand.fallback;

import com.sun.org.apache.xpath.internal.operations.Bool;
import one.stand.entity.excel.CustomerExcelEntity;
import one.stand.entity.excel.OrdersExcelEntity;
import one.stand.feign.CrmFegin;
import one.stand.model.ResultModel;
import one.stand.request.*;
import one.stand.request.essay.*;
import one.stand.request.live.ShortVideoDataForm;
import one.stand.request.live.ShortVideoForm;
import one.stand.request.live.ShortVideoQuery;
import one.stand.request.live.SwitchVideoForm;
import one.stand.response.*;
import one.stand.response.essay.*;
import one.stand.response.live.ShortVideoResponse;
import one.stand.util.ExportDataDTO;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Component
public class CrmFallBack implements CrmFegin {
    @Override
    public ResultModel<List<CompanyAccountResponse>> getCompanyAccountList(CompanyAccountRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getCompanyStaffList(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<GetCompanyStaffResponse> getCompanyStaffInfo(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel quitCompany(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getPcCount(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getChangeCount(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel countCustomerAnalysis(SeeRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel sevenData(FinanceRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CustomerResponse>> countCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getCustomerPC(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ExportDataDTO<CustomerExcelEntity>> getCustomerExport(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertImportCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<GetCustomerInfoResponse> getCustomerInfo(Long cardId) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> manualAdd(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> inputDealMoney(InputDealMoneyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delInputDealPhotos(InputDealMoneyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CustomerResponse>> getCustomerList(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<InputDealMoneyResponse>> getInputDealList(InputDealMoneyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> updCustomerLabel(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> updBatchCustomerState(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Long> addLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addLableList(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyCustomerLableResponse>> getTree(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updLable(CompanyCustomerLableRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel moveCustomer(CustomerRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addFollow(FollowRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<FollowRecordResponse>> getFollowList(FollowRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectGoodsTypeInfoPC(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getGoodsTypeInfo(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel moveGoodsType(GoodstypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getGoodsInfoPC(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveGoodsInfo(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsInfo(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodsInfoList(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addGoodSpecInfo(GoodSpecRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodsInfo(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delGoodSpecInfo(GoodSpecRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyResponse> getCompany(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updCompany(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<String> payment(CompanyAccountRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public String backPayMent(String request) {
        return fail();
    }

    public String fail() {
        return "<xml> \n" +
                "  <return_code><![CDATA[fail]]></return_code>\n" +
                "  <return_msg><![CDATA[OK]]></return_msg>\n" +
                "</xml>";
    }

    @Override
    public ResultModel transferGoods(GoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<BusinessCardResponse>> getList(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<IndustryResponse>> getList() {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getCompanyUserInfo(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel auditBusinessCard(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Long> verifyExpired(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectOrdersInfoPc(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ExportDataDTO<OrdersExcelEntity>> exportOrdersInfoPc(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }


    @Override
    public ResultModel<List<OrdersResponse>> getOrdersInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateOrderState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateRefundState(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delOrders(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getRoyaltyData(RoyaltyRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> companyRoyalty(CompanyRoyaltyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertCompanyRoyalty(CompanyRoyaltyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel selectRoyaltyOrderList(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getRoyaltyOrderInfo(OrdersRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectRoyaltyRankList(RoyaltyRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectCompanyTransferList(CompanyTransferRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updateCompanyTransferState(CompanyTransferRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updateRoyaltyRecordState(RoyaltyRecordRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> companyTransfer(CompanyRequest companyRequest) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectAgentCompanyList(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyResponse> getAdminCompanyInfo(CompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getProductsCount(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsTypeList(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsTypePage(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<ProductsTypeResponse>> selectProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveProductsType(ProductsTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectProductsPage(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ProductsResponse> getProductsInfo(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveProducts(ProductsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectAppointmentPage(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AppointmentResponse> getAppointmentInfo(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertAppointment(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updAppointmentState(AppointmentRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> selectCompanyPhotoPage(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<CompanyPhotoResponse>> selectCompanyPhoto(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<Map<String, Object>>> selectTypeNum(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertCompanyPhoto(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> moveCompanyPhoto(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delCompanyPhoto(CompanyPhotoRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> add(CompanyCouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updState(CouponStateRequest request) {
        return ResultModel.faultTolerant();
    }


    @Override
    public ResultModel<Boolean> upd(CompanyCouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CompanyCouponResponse> findCompanyCouponById(CompanyCouponRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> del(CouponStateRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel crmPcPageList(CompanyCouponRequest request) {
        return ResultModel.faultTolerant();
    }

    /**
     *
     * @param request
     * @return
     */
    @Override
    public ResultModel coupponRecords(CoupponRecordsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> insertGoodsAssemble(GoodsAssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<GoodsAssembleResponse>> selectGoodsAssembleDraftsPage(GoodsAssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delGoodsAssembleInfo(GoodsAssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> releaseGoodsAssemble(GoodsAssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<AssembleResponse>> selectGoodsAssemblePage(AssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<AssembleResponse> getGoodsAssembleInfo(AssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<GoodsAssembleResponse> updateGoodsAssembleInfo(AssembleRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<SecKillResponse>> selectKillGoodsList(SecKillRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addKillGoodsInfo(SecKillRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> delKillGoodsInfo(SecKillRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<SecKillResponse> updateKillGoodsInfo(SecKillRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> releaseKillGoods(SecKillRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Map<String, Object>> getDynamicInfoPC(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delDynamicInfo(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel getDynamicDetail(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryStaffData(EssayStaffDataRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addStaffData(EssayStaffDataFrom request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addVisitorsData(EssayVisitorsDataForm request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> addShareRecordData(EssayRecordForm request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryStaffShareDetail(EssayShareDetailRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryVisitorsData(EssayVisitorsDataRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryDynamicData(DynamicQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryDynamicVisitors(VisitorsDetailQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryCompanyGoods(GoodsQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryCompanyDynamics(CompanyDynamicsQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryCompanyDynamicById(CompanyDynamicsQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addTaskCustomer(TaskCustomerForm request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryTaskCustomer(TaskCustomerQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryMyTask(MyTaskQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryMyTaskDetail(MyTaskDetailQuery request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateMyTaskState(UpdateMyTaskFrom request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel addEassyType(EssayTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateEassyType(EssayTypeForm request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryEassyTypeById(EssayTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryPageEassyType(EssayTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel deleteById(EssayTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryAllType(EssayTypeRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel updateDynamicState(DynamicRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<List<BusinessCardResponse>> queryCompanyStaff(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel queryShortVideoByList(ShortVideoQuery request) {
        return ResultModel.fail();
    }

    @Override
    public ResultModel<Boolean> addShortVideo(ShortVideoForm request) {
        return ResultModel.fail();
    }

    @Override
    public ResultModel<Boolean> updateShortVideo(ShortVideoForm request) {
        return null;
    }

    @Override
    public ResultModel<ShortVideoResponse> queryShortVideoById(ShortVideoQuery query) {
        return ResultModel.fail();
    }

    @Override
    public ResultModel<Boolean> deleteShortVideoById(ShortVideoQuery query) {
        return ResultModel.fail();
    }

    @Override
    public ResultModel<ReprintArticleResponse> reprintArticle(ReprintArticleForm request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<Boolean> updateData(ShortVideoDataForm request) {
        return ResultModel.fail();
    }

    @Override
    public ResultModel<Boolean> switchVideo(SwitchVideoForm request) {
        return ResultModel.fail();
    }
}
